package book;

/**
 * Created by Salted fish
 * Description:
 * User: 24539
 * Date：2021-09-22
 * Time: 15:18
 */
public class BookList {
    private int usedSize;
    private Book[] books = new Book[10];
    public BookList() {
        this.books[0]= new Book("三国演义","罗贯中","小说",22);
        this.books[1]= new Book("西游记","施耐庵","小说",19);
        this.books[2]= new Book("红楼梦","曹雪芹","小说",16);
        this.usedSize = 3;
    }

    public int getUsedSize() {
        return usedSize;
    }

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }

    public Book getBook(int i) {
        return books[i];
    }
    public void setBooks(int Mark,Book book) {
        books[Mark] = book;
    }


}
